package com.kaiyidiannao.activity.foodpalace;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import com.kaiyidiannao.main.R;
import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * Created by guanzhe on 14-4-24.
 */
public class DisplayActivity extends Activity {

    private String mUrl;
    private ImageView viewPagerDisplayIv;
    private ImageLoader imageLoader;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.common_viewpager_display);
        mUrl = getIntent().getStringExtra("url");
        viewPagerDisplayIv = (ImageView) findViewById(R.id.viewPagerDisplayIv);
        imageLoader = ImageLoader.getInstance();
        imageLoader.displayImage(mUrl,viewPagerDisplayIv);
    }
}
